package cn.maihe.elg.operation.repository.mapper;

import cn.maihe.elg.operation.repository.entity.RoleDO;
import cn.maihe.elg.operation.repository.entity.entityCustom.RoleDOCustom;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<RoleDO> {
    List<RoleDOCustom> findByUserId(@Param("userId") Long userId);

    List<RoleDOCustom> findAll(@Param("rolename") String roleName, @Param("status") String status);

    List<RoleDOCustom> findByType(@Param("rolename") String roleName, @Param("type") Integer type, @Param("status") String status);

    RoleDOCustom selectByIdCustom(@Param("id") Long id);
}
